var winWidth = 0;
var winHeight = 0;
window.onresize = function(){
	if(window.innerWidth){
		winWidth = window.innerWidth;
	}else{
		if((document.body) && (document.body.clientWidth)){
			winWidth = document.body.clientWidth;
		}
	}
	if(window.innerHeight){
		winHeight = window.innerHeight;
	}else{
		if((document.body) && (document.body.clientHeight)){
			winHeight = document.body.clientHeight;
		}
	}
	if(document.documentElement && document.documentElement.clientHeight && document.documentElement.clientWidth) {
		winHeight = document.documentElement.clientHeight;
		winWidth = document.documentElement.clientWidth;
	}
	document.getElementById("top").style.width = winWidth + "px";
	//alert(document.getElementById("top").style.width);
	//document.getElementById("container").style.height = winHeight;
}